<div class="depot_form">
  <% if flash[:alert] %>
    <p id="notice"><%= flash[:alert] %> </p>
  <% end %>
  
  <% if notice %>
    <p id="notice"><%= notice %> </p>
  <% end %>
  

  
  <%= form_tag do %>
    <fieldset>
      <legend>Please log in</legend>
      <div class="field">
        <label for="name">Name:</label> <br/>
        <%= text_field_tag :name, params[:name] %>
      </div>
      <div class="field">
        <label for="password">Password:</label><br/>
        <%= password_field_tag :password, params[:password] %>
      </div>
      <div class="actions">
        <%= submit_tag "Login" %>
      </div>
      <%# set the focus to the name field%>
      <%= javascript_tag "$('name').focus()" %>
    </fieldset>
  <% end %>
</div>